<%-- 
    Document   : error
    Created on : 01.01.2015, 20:23:44
    Author     : illabefat
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Error</title>
    </head>
    <body>
        <c:import url="header.jsp"/>
        <h3>Some error occured!</h3>
        <c:choose>
            <c:when test="${not empty sessionScope.error}">
                <c:out value="${sessionScope.error}"/>
            </c:when>
            <c:otherwise>
                <c:out value="Page not found"/>
            </c:otherwise>
        </c:choose>
        
        <br/>
        <c:remove var="error" scope="session"/>
    </body>
</html>